package main

import "fmt"

func main() {
	var p *Student = &Student{name: "qq"}
	fmt.Println(p.name)
	fmt.Println((*p).name)
	fmt.Println((&p).name) //error

}

func test02() {
	type MyInt1 int
	type MyInt2 = int //别名

	var i int = 0
	var i1 MyInt1 = i //err
	var i2 MyInt2 = i
	fmt.Println(i1, i2)
}

func test01() {
	var p *Student = &Student{name: "qq"}
	fmt.Println(p.name)
	fmt.Println((*p).name)
	fmt.Println((&p).name) //error

}

type Student struct {
	name string
}
